package com.woniuxy.mapper;

import com.woniuxy.dto.RecordDetailDTO;
import com.woniuxy.dto.RecordOnAppDTO;
import com.woniuxy.dto.ServiceRecordDTO;
import com.woniuxy.entity.ServiceRecord;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 11214
* @description 针对表【biz_service_record(服务记录表)】的数据库操作Mapper
* @createDate 2025-09-02 17:51:12
* @Entity com.woniuxy.entity.ServiceRecord
*/
public interface ServiceRecordMapper {

    Integer deleteByPrimaryKey(Long id);

    Integer insert(ServiceRecord record);

    Integer insertSelective(ServiceRecord record);

    ServiceRecord selectByPrimaryKey(Long id);

    Integer updateByPrimaryKeySelective(ServiceRecord record);

    Integer updateByPrimaryKey(ServiceRecord record);

    List<ServiceRecordDTO> queryAllByServiceStatus(@Param("status")List<Integer> status, @Param("userId")Integer userId,@Param("name")String name);

    RecordDetailDTO queryDetailByRecordId(Integer id);

    List<RecordOnAppDTO> queryAllByResidentIdOnApp(Integer residentId);

    List<ServiceRecordDTO> queryByName(@Param("status")List<Integer> status,@Param("name")String name);
}
